![]() |
NewWindow |
||||
Header: | MacWindows.h | Carbon status: | Modified | |
Creates a new monochrome window from a parameter list.
WindowRef NewWindow ( void *wStorage, const Rect *boundsRect, ConstStr255Param title, Boolean visible, SInt16 theProc, WindowRef behind, Boolean goAwayFlag, SInt32 refCon );
The NewWindow function was originally implemented prior to Color QuickDraw. In Mac OS 8, you should call the Color QuickDraw function NewCWindow instead of NewWindow to programmatically create a window, because Color QuickDraw is always available in Mac OS 8. Use of this function is not recommended with Mac OS 8 and later.
Modified in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
In Carbon, you cannot pass your own storage in to the wStorage parameter.
In Carbon, NewWindow is functionally equivalent to the NewCWindow, in that NewWindow returns a color window instead of a monochrome window.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)